package com.lrkj.payfee.domain;

import java.math.BigDecimal;
import java.util.List;

import com.lrkj.common.annotation.Excel;
import com.lrkj.common.core.domain.BaseEntity;
import com.lrkj.payfee.vo.PayRecordVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 费用支付订单对象 tb_pay_order
 *
 * @author yajun_ren
 * @date 2022-08-19
 */
@Data
public class PayOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty(value = "主键", hidden = true)
    private String id;

    @ApiModelProperty(value = "房间ID", required = true)
    private String roomId;

    /** 流水号 */
    @ApiModelProperty(value = "流水号")
    private String serialNo;

    /** 订单号 */
    @ApiModelProperty(value = "订单号")
    private String orderNo;

    /** 订单类型 */
    @ApiModelProperty(value = "订单类型")
    private String orderType;

    /** 支付金额 */
    @ApiModelProperty(value = "支付金额", hidden = true)
    private BigDecimal payMoney;

    @ApiModelProperty(value = "缴费周期(3个月/6个月/12个月/所有)")
    private String paymentCycle;

    //账单缴费记录
    List<PayRecordVo> payRecordVos;



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("roomId", getRoomId())
            .append("serialNo", getSerialNo())
            .append("orderNo", getOrderNo())
            .append("orderType", getOrderType())
            .append("payMoney", getPayMoney())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
